package com.ruoyi.business.statistics.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.Year;
import java.time.YearMonth;
import java.util.Date;
import java.util.List;

/**
 * @Description
 *
 * @author 李国臻
 * @date 2025-04-22 08:51
 */
@Data
public class StatisticsData extends BaseEntity{
    @ApiModelProperty("日期单位")
    @NotNull(message = "日期单位不能为空")
    private String dateUnit;

    @ApiModelProperty("日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @ApiModelProperty("日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    @ApiModelProperty("月份集合")
    private List<YearMonth> monthList;

    @ApiModelProperty("年份集合")
    private List<Year> yearList;

    @ApiModelProperty("月份")
    private YearMonth month;

    @ApiModelProperty("年份")
    private Year year;

    @ApiModelProperty("浮标名称")
    @Excel(name = "浮标名称")
    private String buoyName;

    @ApiModelProperty("日期")
    @Excel(name = "日期", width = 30)
    private String displayDate;

    @ApiModelProperty("海洋数据名称")
    @Excel(name = "海洋数据名称")
    private String selectParamsName;

    @ApiModelProperty("数据量")
    @Excel(name = "数据量")
    private String totalCount;

    @ApiModelProperty("平均值")
    @Excel(name = "平均值")
    private String averageCount;

    @ApiModelProperty("方差")
    @Excel(name = "标准差")
    private String varianceCount;

    @ApiModelProperty("标准差")
    @Excel(name = "标准差")
    private String sdCount;

    @ApiModelProperty("最大值")
    @Excel(name = "最大值")
    private String maxCount;

    @ApiModelProperty("最小值")
    @Excel(name = "最小值")
    private String minCount;

    @ApiModelProperty("海洋数据")
    private String selectParams;


    @ApiModelProperty("浮标ID")
    private Long buoyId;




}
